export default {
  menu: [
    {
      icon: 'fa fa-desktop',
      name: '订单管理',
      nodes: [
        {
          key: 'airOrderManage.orderSupplement',
          name: '手工订单',
          icon: 'fa fa-plus-square'
        },
        {
          key: 'airOrderManage.orderIssueList',
          name: '出票订单',
          icon: 'fa fa-reorder'
        },
        {
          key: 'airOrderManage.orderList',
          name: '订单管理',
          icon: 'fa fa-plane'
        },
        {
          key: 'airOrderManage.refundOrderList',
          name: '退票订单',
          icon: 'fa fa-columns'
        },
        {
          key: 'airOrderManage.rebookingOrderList',
          name: '改签订单',
          icon: 'fa fa-file-text-o'
        }
      ]
    }, {
      icon: ' fa fa-cogs',
      name: '基础设置',
      nodes: [
        {
          key: 'airBaseSetting.airOnlineShopManager',
          name: '网店设置',
          icon: 'fa fa-server'
        },
        {
          key: 'airBaseSetting.airIssueRuleManager',
          name: '出票规则设置',
          icon: 'fa fa-building-o'
        },
        {
          key: 'policy.policyManagePage',
          name: '政策管理',
          icon: 'fa fa-globe'
        }
      ]
    }, {
      icon: 'fa fa-shield',
      name: '航司设置',
      nodes: [
        {
          key: 'airlineSetting.userB2bAccountSettingList',
          name: 'B2B航空公司设置',
          icon: 'fa fa-file-o'
        },
        {
          key: 'airlineSetting.b2bIssueSettingList',
          name: 'B2B自动出票设置',
          icon: 'fa fa-align-center'
        },
        {
          key: 'airlineSetting.payAccountSettingList',
          name: '支付账号设置',
          icon: 'fa fa-credit-card'
        },
        {
          key: 'airlineSetting.userB2cAccountSettingList',
          name: 'B2C账号设置',
          icon: 'fa fa-align-center'
        },
        {
          key: 'airlineSetting.customBookingRule',
          name: '退改签设置',
          icon: 'fa fa-file-text-o'
        }
      ]
    },
    {
      icon: 'fa fa-user',
      name: '个人中心',
      nodes: [
        {
          key: 'personal.updatePassword',
          name: '修改密码',
          icon: 'fa fa-lock'
        }
      ]
    },
    {
      icon: 'fa fa-table',
      name: '统计报表',
      nodes: [
        {
          key: 'statisticalReport.salesReportPage',
          name: '销售报表',
          icon: 'fa fa-money'
        }
      ]
    },
    {
      icon: 'fa fa-cog',
      name: '系统管理',
      nodes: [
        {
          key: 'userManage',
          name: '员工管理',
          icon: 'fa fa-user'
        },
        {
          key: 'roleManage',
          name: '角色管理',
          icon: 'fa fa-address-card'
        },
        {
          key: 'authorityManage',
          name: '权限管理',
          icon: 'fa fa-key'
        },
        {
          key: 'departManage',
          name: '部门管理',
          icon: 'fa fa-group'
        },
        {
          key: 'quartzTask',
          name: '定时任务',
          icon: 'fa fa-calendar'
        },
        {
          key: 'quartzLog',
          name: '定时任务日志',
          icon: 'el-icon-time'
        },
        {
          key: 'dictionaryManager',
          name: '字典管理',
          icon: 'fa fa-table'
        }
      ]
    }
  ],
  keyMap: {
    // 个人中心
    'personal.updatePassword': {app: 'PersonalUpdatePassword', name: '修改密码', breadcrumbs: ['个人中心', '修改密码']},

    // 系统管理
    'userManage': {app: 'SystemUserManager', name: '员工管理', breadcrumbs: ['系统管理', '用户管理']},
    'roleManage': {app: 'SystemRoleManage', name: '角色管理', breadcrumbs: ['系统管理', '角色管理']},
    'authorityManage': {app: 'SystemResourceManager', name: '权限管理', breadcrumbs: ['系统管理', '权限管理']},
    'departManage': {app: 'SystemDeptManager', name: '部门管理', breadcrumbs: ['系统管理', '部门管理']},
    'quartzTask': {app: 'SystemQuartzTask', name: '定时任务', breadcrumbs: ['系统管理', '定时任务']},
    'quartzLog': {app: 'SystemQuartzLog', name: '定时任务日志', breadcrumbs: ['系统管理', '定时任务日志']},
    'dictionaryManager': {app: 'SystemDictionaryManager', name: '字典管理', breadcrumbs: ['系统管理', '字典管理']},
    // 订单管理
    'airOrderManage.orderSupplement': {app: 'AirOrderSupplement', name: '补单', breadcrumbs: ['订单管理', '补单']},
    'airOrderManage.orderSupplementDetail': {app: 'AirOrderSupplementDetail', name: '补单详情', breadcrumbs: ['订单管理', '补单', '补单详情']},
    'airOrderManage.orderIssueList': {app: 'AirOrderIssueList', name: '出票控制台', breadcrumbs: ['订单管理', '出票控制台']},
    'airOrderManage.orderIssueDetail': {
      app: 'AirOrderIssueDetail',
      name: '订单详情',
      breadcrumbs: ['订单管理', '出票控制台', '订单详情']
    },
    'airOrderManage.orderList': {app: 'AirOrderIssueList', name: '订单管理', breadcrumbs: ['订单管理', '订单管理']},
    'airOrderManage.refundOrderList': {app: 'AirOrderRefundList', name: '退票订单', breadcrumbs: ['订单管理', '退票订单']},
    'airOrderManage.orderRefundDetail': {
      app: 'AirOrderRefundDetail',
      name: '退票单详情',
      breadcrumbs: ['订单管理', '退票订单', '退票单详情']
    },
    'airOrderManage.orderRefundAdd': {
      app: 'AirOrderRefundAdd',
      name: '新增退票单',
      breadcrumbs: ['订单管理', '退票订单', '新增退票单']
    },
    'airOrderManage.rebookingOrderList': {app: 'AirOrderIssueList', name: '改签订单', breadcrumbs: ['订单管理', '改签订单']},
    'airOrderManage.orderLog': {app: 'P404', name: '订单日志', breadcrumbs: ['订单管理', '订单日志']},
    // 基础设置
    'airBaseSetting.airOnlineShopManager': {app: 'AirOnlineShopManager', name: '网店设置', breadcrumbs: ['基础设置', '网店设置']},
    'airBaseSetting.airIssueRuleManager': {app: 'AirIssueRuleManager', name: '出票规则设置', breadcrumbs: ['基础设置', '出票规则设置']},
    'airBaseSetting.issueSwitchList': {app: 'P404', name: '自动出票开关', breadcrumbs: ['基础设置', '自动出票开关']},
    'airBaseSetting.reGetSeatList': {app: 'P404', name: '追位设置', breadcrumbs: ['基础设置', '追位设置']},
    // 航司设置
    'airlineSetting.userB2bAccountSettingList': {
      app: 'AirUserB2bAccountManager',
      name: 'B2B航空公司设置',
      breadcrumbs: ['航司设置', 'B2B航空公司设置']
    },
    'airlineSetting.b2bIssueSettingList': {
      app: 'AirB2bIssueAccountManager',
      name: 'B2B自动出票设置',
      breadcrumbs: ['航司设置', 'B2B自动出票设置']
    },
    'airlineSetting.payAccountSettingList': {
      app: 'AirB2bPayAccountManager',
      name: '支付账号设置',
      breadcrumbs: ['航司设置', '支付账号设置']
    },
    'airlineSetting.userB2cAccountSettingList': {
      app: 'AirUserB2cAccountManager',
      name: 'B2C账号设置',
      breadcrumbs: ['航司设置', 'B2C账号设置']
    },
    'airlineSetting.customBookingRule': {app: 'AirCustomBookingRule', name: '退改签维护', breadcrumbs: ['航司设置', '退改签维护']},
    // 统计报表
    'statisticalReport.salesReportPage': {app: 'SalesReportPage', name: '销售报表', breadcrumbs: ['统计报表', '销售报表']},
    // 政策管理
    'policy.policyManagePage': {app: 'PolicyManagePage', name: '政策管理', breadcrumbs: ['政策管理', '政策管理']}
  },
  install (Vue) {
    Vue.component('P404', () => import('./src/ErrorPage/404'))
    // 个人中心
    Vue.component('PersonalUpdatePassword', () => import('./src/Personal/UpdatePassword'))

    // 系统管理
    Vue.component('SystemUserManager', () => import('./src/System/UserManager'))
    Vue.component('SystemRoleManage', () => import('./src/System/RoleManager'))
    Vue.component('SystemResourceManager', () => import('./src/System/ResourceManager'))
    Vue.component('SystemDeptManager', () => import('./src/System/DeptManager'))
    Vue.component('SystemQuartzTask', () => import('./src/System/QuartzTask'))
    Vue.component('SystemQuartzLog', () => import('./src/System/QuartzLog'))
    Vue.component('SystemDictionaryManager', () => import('./src/System/DictionaryManager'))

    // 订单管理
    Vue.component('AirOrderSupplement', () => import('./src/AirOrderManage/OrderSupplement'))
    Vue.component('AirOrderSupplementDetail', () => import('./src/AirOrderManage/OrderSupplementDetail'))
    Vue.component('AirOrderIssueList', () => import('./src/AirOrderManage/OrderIssueList'))
    Vue.component('AirOrderIssueDetail', () => import('./src/AirOrderManage/OrderIssueDetail'))
    Vue.component('AirOrderRefundList', () => import('./src/AirOrderManage/OrderRefundList'))
    Vue.component('AirOrderRefundDetail', () => import('./src/AirOrderManage/OrderRefundDetail'))
    Vue.component('AirOrderRefundAdd', () => import('./src/AirOrderManage/OrderRefundAdd'))

    // 基础设置
    Vue.component('AirIssueRuleManager', () => import('./src/AirBaseSetting/AirIssueRuleManager'))
    Vue.component('AirOnlineShopManager', () => import('./src/AirBaseSetting/AirOnlineShopManager'))
    Vue.component('AirCustomBookingRule', () => import('./src/AirBaseSetting/AirCustomBookingRule'))

    // 航司设置
    Vue.component('AirB2bIssueAccountManager', () => import('./src/AirlineSetting/AirB2bIssueAccountManager'))
    Vue.component('AirB2bPayAccountManager', () => import('./src/AirlineSetting/AirB2bPayAccountManager'))
    Vue.component('AirUserB2bAccountManager', () => import('./src/AirlineSetting/AirUserB2bAccountManager'))
    Vue.component('AirUserB2cAccountManager', () => import('./src/AirlineSetting/AirUserB2cAccountManager'))

    // 销售报表
    Vue.component('SalesReportPage', () => import('./src/StatisticalReport/SalesReportPage'))

    // 政策管理
    Vue.component('PolicyManagePage', () => import('./src/Policy/PolicyManagePage'))
  }
}
